package com.qymerge.manage.system.dao;

import com.qymerge.manage.system.ro.SysUserRoleRO;

import java.util.List;

/**
 * <p>Title: ISysUserRoleDao</p>
 * <p>Description: 用户角色</p>
 *
 * @Author cong.zhang
 * @Version 1.0.0
 * @Date 2020/7/26/0026
 * @Time 22:59
 */
public interface ISysUserRoleDao {

    List<SysUserRoleRO> findAllRoleByIds(Long userId);

    List<SysUserRoleRO> findAllUserByIds(Long roleId);

    boolean ifExists(Long role_id);

    SysUserRoleRO findOneById(Long userId);

    void insertBatch(List<SysUserRoleRO> list);

    int remove(Long... ids);

    int removeList(List<Long> ids);

}
